package com.gasstion.service.impl;


import com.gasstion.dao.MembersDao;
import com.gasstion.dao.UserinfoDao;
import com.gasstion.entity.Members;
import com.gasstion.entity.Userinfo;
import com.gasstion.service.MembersService;
import com.gasstion.service.UserInfoService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.lang.reflect.Member;
import java.util.List;

@Service
public class MembersServiceImpl implements MembersService {
    @Autowired
    private MembersDao membersDao ;

    @Override
    public List<Members> getAll() {
        return membersDao.query();
    }

    @Override
    public List<Members> findAll(String vipName, int offset, int limit) {
        return membersDao.querySearch(vipName,offset,limit);
    }

    @Override
    public long findTotalCount(String vipName) {
        return membersDao.getTotalCount(vipName) ;
    }
}
